﻿using System;

namespace PC1
{
    public class ControlUnit : IControlUnit
    {
        private readonly ICommandCoder _commandCoder = new CommandCoder();

        private Command _command;

        private int _ir;

        public void Decode()
        {
            _command = _commandCoder.Decode(0);
        }

        public void Execute()
        {
            throw new NotImplementedException();
        }

        public void SetIr(int v)
        {
            _ir = v;
        }
    }
}